﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved All Rights Reserved All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System.Windows.Controls;
using FinPlusAssembler;
using FinPlusInterfaces;
using FinPlusCompView;
using System.Reflection;

namespace FinPlusWeb
{
    public partial class View : Page
    {
        private FinPlusView _view;
        private string _id = "FinPlusWeb";
        private Env _env;

        public View()
        {
            InitializeComponent();
            _env = Assembly.GetExecutingAssembly().ConfigPath().ConfigEnv();
            _view = new FinPlusView(Paths.Values["FolderSubViews"] + _id, _id, _env);
            grid.Children.Add(_view);
        }

        //TODO add dispose
    }
}
